home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3p / pthread_detach.z / pthread_detach
Encoding:
Text File  |  2002-10-03  |  2.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. pppptttthhhhrrrreeeeaaaadddd____ddddeeeettttaaaacccchhhh((((3333PPPP))))                                          pppptttthhhhrrrreeeeaaaadddd____ddddeeeettttaaaacccchhhh((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pthread_detach - detach a thread
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____ddddeeeettttaaaacccchhhh((((pppptttthhhhrrrreeeeaaaadddd____tttt tttthhhhrrrreeeeaaaadddd))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _p_t_h_r_e_a_d__d_e_t_a_c_h() function causes the thread identified by _t_h_r_e_a_d to
  18.      be detached.  This means that storage created by the library on behalf of
  19.      the thread will be reclaimed when the thread terminates.  A detached
  20.      thread cannot be the target of _p_t_h_r_e_a_d__j_o_i_n().
  21.  
  22.      A thread can be created in detached state using
  23.      _p_t_h_r_e_a_d__a_t_t_r__s_e_t_d_e_t_a_c_h_s_t_a_t_e().  It can also be implicitly detached using
  24.      _p_t_h_r_e_a_d__j_o_i_n().
  25.  
  26. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  27.      On success _p_t_h_r_e_a_d__d_e_t_a_c_h() returns zero; otherwise an error number is
  28.      returned:
  29.  
  30.      [[[[EEEESSSSRRRRCCCCHHHH]]]]        The _t_h_r_e_a_d parameter does not identify a thread.
  31.  
  32.      [[[[EEEEIIIINNNNVVVVAAAALLLL]]]]       The thread identified by _t_h_r_e_a_d is already detached.
  33.  
  34. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  35.      pthread_join(3P), pthread_attr_setdetachstate(3P).
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.